import React from 'react';
import './style.css';

import { Anchor } from 'antd';
const { Link } = Anchor;

export default class AnchorEl extends React.Component {
	constructor(props) {
		super(props);
		this.state = {};
		this.AnchorEl = props.AnchorEl;
	}

	render(){
		const Links = this.AnchorEl.map((el, index) => (<Link key={index} href={'#'+el.id} title={el.title} />));

		return (
			<Anchor>
			    {Links}
			</Anchor>
		)
	}
}